path = 'new_train_data.txt'
lines = []
ff = open(path,'r',encoding='utf-8')
lines = ff.readlines()
ff.close()

with open('train.txt','w',encoding='utf-8') as file:
    file.writelines(lines[:90000])
with open('val.txt','w',encoding='utf-8') as file:
    file.writelines(lines[90000:91000])
with open('test.txt','w',encoding='utf-8') as file:
    file.writelines(lines[91000:92000])
